﻿using System;
using System.Collections.Generic;
using System.Text;
using SevenZip;
using System.IO;

namespace __ts.Core.Package
{
    /// <summary>
    /// 
    /// </summary>
    public class PackageCompressor
    {
        private string key = new PackageKeyMaker().Key;

        public void CompressDirectory(SevenZipCompressor cmp, string directory, string archiveName)
        {
            cmp.CompressDirectory(directory, archiveName, true, key);
        }

        public void CompressFilesEncrypted(SevenZipCompressor cmp, string archiveName, string fileFullName)
        {
            cmp.CompressFilesEncrypted(archiveName, key, fileFullName);
        }
    }
}
